package com.gugee.ins.common.model.spider.comment;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gugee.ins.common.model.spider.blogger.EdgeBloggerNode;
import lombok.Data;

/**
 *
 * @author Huangxin
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class EdgeMediaCommentNode {

    private Long id;

    private String text;

    @JsonProperty("created_at")
    private long createdAt;

    private EdgeBloggerNode owner;

    @JsonProperty("did_report_as_spam")
    private boolean didReportAsSpam;

    @JsonProperty("edge_liked_by")
    private EdgeMediaCommentLike edgeLikedBy;

    @JsonProperty("edge_threaded_comments")
    private EdgeMediaCommentBody edgeThreadedComments;

    /**
     *
     * @author Huangxin
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class EdgeMediaCommentLike {
        private int count;
    }
}